/**
 * @author haoranlu
 * @project IntelliJ IDEA
 */
public class demo3 {
    public static void main(String[] args) {
        int x = 2;
        int y = 5;
        int temp = 0;
        temp = x;
        x = y;
        y= temp;
        int a = 2;
        int b = 5;
        a = a^b;
        b = a^b;
        a = a^b;
        System.out.println("x="+x+",y="+y);
        System.out.println("a="+a+",b="+b);
    }

}
